@import "tailwindcss";

:root {
  --toastify-color-dark: #121212;
  --toastify-color-info: #3f3f46;
  --toastify-color-success: rgb(74 222 128);
  --toastify-color-error: #e74c3c;

  --toastify-icon-color-info: var(--toastify-color-info);
  --toastify-icon-color-success: rgb(74 222 128);
  --toastify-icon-color-error: var(--toastify-color-error);
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  @apply m-0 bg-black;
}

/* Button */
.btn {
  @apply rounded-md px-1.5 py-1.5 font-mono text-sm font-medium transition-all duration-200;
}

.btn-primary {
  @apply border border-green-400/10 bg-green-900/50 text-green-400 hover:border-green-400/20 hover:bg-green-900/60;
}

.btn-primary:disabled {
  @apply cursor-not-allowed border border-zinc-400/25 bg-zinc-950 text-zinc-400;
}

.btn-inactive {
  @apply border border-zinc-400/25 bg-zinc-950 text-zinc-400 hover:border-zinc-400/40 hover:bg-zinc-900;
}

.btn-secondary {
  @apply border border-indigo-400/10 bg-indigo-950 text-indigo-400 hover:border-indigo-400/25;
}

/* Grain */

/* zinc-800 #27272a */
/* zinc-700 #3f3f46 */
/* zinc-600 #52525b */

.grain {
  @apply bg-zinc-900;
  /* Graph Paper */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%233f3f46' fill-opacity='0.4'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4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9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Gradient border */
.gradient-border {
  position: relative;
  background-clip: padding-box;
  border: solid 1px transparent;
}

.gradient-border::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  margin: -1px;
  border-radius: inherit;
  background: linear-gradient(
    to bottom,
    theme("colors.zinc.600 / 0.8"),
    theme("colors.zinc.800 / 0.9")
  );
}

input {
  outline: none !important;
}
